package com.kb.design.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;

/**
 * 岗位信息表 design_post
 *
 * @author czx
 */
@Data
@TableName("design_post")
public class DesignPost extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 岗位ID */
    @TableId(type = IdType.AUTO)
    private Long postId;

    /** 岗位名称 */
    @NotBlank(message = "岗位名称不能为空")
    @Size(min = 0, max = 50, message = "岗位名称长度不能超过50个字符")
    private String postName;

    /** 显示顺序 */
    @NotNull(message = "显示顺序不能为空")
    private Integer postSort;

    /** 状态（0正常 1停用） */
    @NotBlank(message = "状态不能为空")
    @Size(min = 1, max = 1, message = "状态长度必须是1个字符")
    private String status;

    /** 备注 */
    @Size(min = 0, max = 500, message = "备注长度不能超过500个字符")
    private String remark;

    private Integer pinTarget;
    @TableField(exist = false)
    private Integer targetPin;


}
